package net.lab1024.sa.admin.module.business.sp.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.lab1024.sa.base.common.domain.PageParam;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class SpQueryForm extends PageParam {
    @Schema(description = "商品编号")
    private long spId;
    @Schema(description = "商品名称")
    @Length(max = 50, message = "参数Key最多50字符")
    private String spName;
    @Schema(description = "商品类型")
    private String spType;
    @Schema(description = "搜索词")
    @Length(max = 30, message = "搜索词最多30字符")
    private String searchWord;

}
